package com.dy.lock.screen.service;

import java.util.List;
import java.util.Map;

import com.dy.lock.screen.pojo.GoodsInfo;
import com.dy.lock.screen.pojo.OrderInfo;
import com.dy.lock.screen.scoket.Head;

public interface OrderService {

	/**
	 * 生成账单信息
	 * 
	 * @param orderInfo
	 * @param head
	 * @return
	 */
	public int save(OrderInfo orderInfo, GoodsInfo goodsIfno, int surplus,
			Head head);

	/**
	 * 修改信息
	 * 
	 * @param orderInfo
	 * @param head
	 * @return
	 */
	public int update(OrderInfo orderInfo, Head head);

	/**
	 * 分页查询
	 * 
	 * @param para
	 * @param head
	 * @return
	 */
	public List<OrderInfo> queryPage(Map<String, Object> para, Head head);

	/**
	 * 通过订单id查询
	 * 
	 * @param orderId
	 * @return
	 */
	public OrderInfo queryByPrimaryKey(String orderId);

	/**
	 * 获取订单详情
	 * 
	 * @return
	 */
	public OrderInfo getOrderDetail(String orderId, String userId);
}
